#include "StdAfx.h"
#include "Player.h"
#include "Bomb.h"

#include "PC1Factory.h"
#include "PC2Factory.h"
#include "AbstractPCFac.h"

AbstractPCFac::AbstractPCFac()
{
}

Player* AbstractPCFac::MakePlayer()
{
	return factory->MakePlayer();
}

Bomb* AbstractPCFac::MakeBomb()
{
	return factory->MakeBomb();
}

void AbstractPCFac::SetFactory(DWORD no)
{
	if(no == 0)
	{
		factory = PC1Factory::Instance();
	}
	else if(no == 1)
	{
		factory = PC2Factory::Instance();
	}
}